package cmd

import (
	"fmt"

	"github.com/spf13/cobra"
)

var versionCmd = &cobra.Command{
	Use:   "version",
	Short: "输出版本信息",
	Long:  "输出版本信息",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println(`
                       _     _  _        
                      | |   (_)| |       
__      __ ___   _ __ | | __ _ | |_  ___ 
\ \ /\ / // _ \ | '__|| |/ /| || __|/ __|
 \ V  V /| (_) || |   |   < | || |_ \__ \
  \_/\_/  \___/ |_|   |_|\_\|_| \__||___/

        Powered by tseman@yeah.net
            https://workits.cn

                CLI v0.1.1

		`)
	},
}

func init() {
	rootCmd.AddCommand(versionCmd)
}
